package com.wxsong.authplatform.authweb.util;

public enum  ResponseCode {

    SUCCESS("1001", "成功"),
    FAIL("1002", "失败"),

    ADD_USER_FAIL("2001", "添加用户失败"),
    UPDATE_USER_FAIL("2002", "修改用户失败"),
    DELETE_USER_FAIL("2003", "删除用户失败"),

    ADD_ROLE_FAIL("3001", "添加角色失败"),
    UPDATE_ROLE_FAIL("3002", "修改角色失败"),
    DELETE_ROLE_FAIL("3003", "删除角色失败"),
    GRANT_ROLE_AUTH_FAIL("3004", "给角色授予权限失败"),

    ADD_AUTHORITY_FAIL("4001", "添加权限失败"),
    UPDATE_AUTHORITY_FAIL("4002", "修改权限失败"),
    DELETE_AUTHORITY_FAIL("4003", "删除权限失败"),
    GRANT_AUTH_MENU_FAIL("4004", "给权限授予菜单失败"),

    ADD_MENU_FAIL("5001", "添加菜单失败"),
    UPDATE_MENU_FAIL("5002", "修改菜单失败"),
    DELETE_MENU_FAIL("5003", "删除菜单失败"),






    ;

    public String code;
    public String info;

    ResponseCode(String code, String info){
        code = code;
        info = info;
    }

}
